Skip to content

Remove usage of NoNansFPMath after LLVM 22#9039

Merged
alexreinking merged 1 commit intohalide:automated/upgrade-halide-llvmfrom
boomanaiden154:fix-nonansfpmath
Mar 16, 2026
Merged

Remove usage of NoNansFPMath after LLVM 22#9039
alexreinking merged 1 commit intohalide:automated/upgrade-halide-llvmfrom
boomanaiden154:fix-nonansfpmath

Conversation

@boomanaiden154
Copy link
Copy Markdown
Contributor

This was removed upstream and was a no-op when it got removed, so we can simply hide these options behind an if-def.

This was removed upstream and was a no-op when it got removed, so we can
simply hide these options behind an if-def.
@boomanaiden154
Copy link
Copy Markdown
Contributor Author

This is an alternative to #9029. That PR is incorrect as the string attribute got removed as well (although I don't think adding one will hurt). The attribute was a no-op when it got removed, so it doesn't make sense to do anything beyond just omit adding it in LLVM 23+.

llvm/llvm-project#186285 was the PR that removed support.

CC @alexreinking @abadams

@boomanaiden154
Copy link
Copy Markdown
Contributor Author

(This is the fix we used for our internal version of Halide when we bumped our internal LLVM version on Friday).

@abadams
Copy link
Copy Markdown
Member

abadams commented Mar 15, 2026

Thanks, this makes more sense than #9029

@alexreinking alexreinking changed the base branch from main to automated/upgrade-halide-llvm March 16, 2026 01:19
@alexreinking alexreinking force-pushed the automated/upgrade-halide-llvm branch from a7e0dbd to 6235b4b Compare March 16, 2026 01:20
@alexreinking alexreinking changed the title Remove useage of NoNansFPMath after LLVM 22 Remove usage of NoNansFPMath after LLVM 22 Mar 16, 2026
@alexreinking alexreinking self-requested a review March 16, 2026 01:21
@alexreinking
Copy link
Copy Markdown
Member

Thanks @boomanaiden154 -- I'm merging this into the automated upgrade PR.

@alexreinking alexreinking merged commit 0bc833a into halide:automated/upgrade-halide-llvm Mar 16, 2026
16 of 18 checks passed
alexreinking pushed a commit that referenced this pull request Mar 16, 2026
* Upgrade halide-llvm to 23.0.0.dev85505+g69780be1

* Remove usage of NoNansFPMath after LLVM 22 (#9039)

This was removed upstream and was a no-op when it got removed, so we can
simply hide these options behind an if-def.

---------

Co-authored-by: halide-ci[bot] <266445882+halide-ci[bot]@users.noreply.github.com>
Co-authored-by: Aiden Grossman <aidengrossman@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants